﻿using System.Collections.Generic;
namespace Guoc.BigMall.Domain.Entity
{
    public class SaleOrderItem : BaseEntity
    {
        public int SaleOrderId { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public string ProductCode { get; set; }
       
        /// <summary>
        /// 商品销售价
        /// </summary>
        public decimal SalePrice { get; set; }
        /// <summary>
        /// 实际支付价格
        /// </summary>
        public decimal RealPrice { get; set; }
       
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

       
        public decimal GetRowTotal()
        {
            return this.RealPrice * this.Quantity;
        }
    }
}